package com.cssl.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 用户服务对外提供的接口
 */
@FeignClient(name="order-service")
public interface OrderApi {

    /**
     * 修改订单状态
     * @param po_id
     * @return
     */
    @PostMapping("/updateStatus")
    public String updateStatus(@RequestParam("po_id") String po_id);

    /**
     * 根据座位id删除对应的订单
     * @return
     */
    @PostMapping("/deleteOrderEid")
    public String deleteOrderEid(@RequestBody List<Integer> eq_id);
}
